package cn.bonoon.controllers.fmm;

import cn.bonoon.kernel.annotations.Cutoff;
import cn.bonoon.kernel.annotations.TransformField;
import cn.bonoon.kernel.support.models.AbstractItem;
import cn.bonoon.kernel.web.annotations.grid.AsColumn;
import cn.bonoon.kernel.web.annotations.grid.AsDataGrid;
import cn.bonoon.kernel.web.annotations.grid.GridOptions;

@AsDataGrid(condition = RoleCondition.class, value = @GridOptions(operationWith = 400))
public class RoleItem extends AbstractItem implements RoleDefine {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5973336393438933195L;

	@AsColumn(width = 140, ordinal = 50)
	private String createAt;

	@AsColumn(width = 100, ordinal = 10)
	@Cutoff(-1)
	private String roleKey;

	@AsColumn(width = 120, ordinal = 0)
	@Cutoff(-1)
	private String name;

	@AsColumn(width = 180, ordinal = 1)
	private String moduleName;

	@AsColumn(width = 50, ordinal = 25)
	private String status;

//	@AsColumn(width = 60, ordinal = 30)
//	private String defaultRole;

	@AsColumn(width = 60, ordinal = 5)
	private String typeName;

	@TransformField("status")
	private int statusValue;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCreateAt() {
		return createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getRoleKey() {
		return roleKey;
	}

	public void setRoleKey(String roleKey) {
		this.roleKey = roleKey;
	}

//	public String getDefaultRole() {
//		return defaultRole;
//	}
//
//	public void setDefaultRole(String defaultRole) {
//		this.defaultRole = defaultRole;
//	}

//	public String getModuleKey() {
//		return moduleKey;
//	}
//
//	public void setModuleKey(String moduleKey) {
//		this.moduleKey = moduleKey;
//	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public int getStatusValue() {
		return statusValue;
	}

	public void setStatusValue(int statusValue) {
		this.statusValue = statusValue;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

}
